<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
use yii\widgets\ActiveForm;
use kartik\date\DatePicker;
/* $this yii\web\View; */
/* $model backend\modules\admin\models\Role */
?>
<div style="height:20px"></div>

<?php
$label_class=['class'=>'col-sm-3 control-label no-padding-right'];
$form = ActiveForm::begin(
    [
        'fieldConfig'=>[
            'options' => ['enctype' => 'multipart/form-data', 'class' => 'form-horizontal'],
            'template'=> "<div class=\"form-group\">{label}\n<div class=\"col-sm-5\">{input}</div><div class=\"col-sm-3\">{error}</div></div>",
            'labelOptions' =>['class' => $label_class],
        ],
        'enableClientValidation' => false, 
        'method' => 'post',
    ]
);
?>
<?= $form->field($model, 'realname')->textInput(['maxlength' =>20, 'class'=>'form-control border-input'])?>
<?= $form->field($model, 'gender')->radioList(['男'=>'男','女'=>'女'])?>

<?= $form->field($model, 'tel')->textInput(['maxlength' =>20, 'class'=>'form-control border-input'])?>
<?= $form->field($model, 'info')->textInput(['maxlength' =>20, 'class'=>'form-control border-input'])?>

<div class="clearfix">
    <div class="col-md-offset-3 col-md-9">
        <?= Html::submitButton('提交', ['class'=>'btn btn-info','name' =>'submit-button']) ?>
        <?= Html::resetButton('重置', ['class'=>'btn btn-primary','name' =>'reset-button']) ?>
    </div>
</div>
<?php ActiveForm::end(); ?>
<div style="height:20px"></div>